<{:W('Bizhome/header',array($biz_item_num,$user))}>

	<div class="right_box">
		<div class="content content_hastab">	
			<form class='' id='' name="" action="__APP__/Home/Competition/create_competition_handler" method="post" enctype="multipart/form-data">
				<table  style="">
          <tbody>
                   <tr>
                   	   <td>
                   		   <label title='' for="competition_name">竞赛名称</label>
                   	   </td>
                   	   <td>
                   		   <input type="text" name="competition_name" id="competition_name" />
                   	   </td>
                   </tr>
                   <tr>
                       <td>
                         <label title='' for="competition_organizer_id">竞赛发起者</label>
                       </td>
                       <td>
                         <input type="text" name="name" id="name" value="<{$user.name}>" disabled/>
                       </td>
                   </tr>
                   <tr>
                         <td>
                             <label title='' for="com_model_type">竞赛种类</label>  
                         </td>
                         <td>
                              <select name="com_model_type" id="com_model_type">
                                      <option value="1">单项赛</option>
                                      <option value="2">三项团体赛</option>
                                      <!-- <option value="3">五项团体赛</option> -->
                              </select>
                         </td>
                   </tr>
                   <tr>
                         <td>
                             <label title='' for="com_model_item">竞赛项目</label>  
                         </td>
                         <td>
                              <select name="com_model_item" id="com_model_item">
                                      <option value="1">男单（单项赛）</option>
                                      <option value="2">女单（单项赛）</option>
                                      <option value="3">男双（单项赛）</option>
                                      <option value="4">女双（单项赛）</option>
                                      <option value="5">混双（单项赛）</option>
                                      <option value="6">男双、女双、混双（三项团体赛）</option>
                                      <option value="7">男双、混双、老年组（三项团体赛）</option>
                                      <option value="8">男双、混双、男单（三项团体赛）</option>
                              </select>
                         </td>
                   </tr>
                   <tr>
                   	   <td>
                   		   <label title='' for="competition_publish_time">竞赛发布时间</label>
                   	   </td>
                   	   <td>
                   		   <input type="date" id="competition_publish_time" name="competition_publish_time" value="" />
                   	    </td>
                   </tr>
                   <tr>
                   	   <td>
                   		   <label title='' for="competition_deadline_registration">竞赛报名截止时间</label>
                   	   </td>
                   	   <td>
                   		   <input type="date" id="competition_deadline_registration" name="competition_deadline_registration" value=""/>
                   	    </td>
                   </tr>
                   <tr>
                   	   <td>
                   		   <label title='' for="competition_begin_time">竞赛开始时间</label>
                   	   </td>
                   	   <td>
                   		   <input type="date" id="competition_begin_time" name="competition_begin_time" value=""/>
                   	    </td>
                   </tr>
                   <tr>
                   	   <td>
                   		   <label title='' for="competition_contain_number">竞赛总人数</label>
                   	   </td>
                   	   <td>
                   		   <input type="number" id="competition_contain_number" name="competition_contain_number" value="" min="4" max="144" />
                   	    </td>
                   </tr>
                   <tr>
                   	   <td>
                   		   <label title='' for="competition_regist_unit">单项竞赛单元(队伍)数</label>
                   	   </td>
                   	   <td>
                   		   <input type="number" id="competition_regist_unit" name="competition_regist_unit" value="" min="4" max="24" />
                   	    </td>
                   </tr>
                   <tr>
                   	   <td>
                   		   <label title='' for="competition_content">竞赛描述</label>
                   	   </td>
                   	   <td>
                   	   	<textarea id="competition_content" name="competition_content" rows="3" cols="20"></textarea>
                   	    </td>
                   </tr>
                   
                   <tr>
                       <td>
                         <label title='' for="competition_public">竞赛是否公开报名</label>
                       </td>
                       <td>
                        <input type="radio" id="competition_public1" name="competition_public" value="1" checked />是
                        <input type="radio" id="competition_public2" name="competition_public" value="0" <notin name="user.access" value="2">disabled</notin> />否
                        </td>
                   </tr>
                   
                   <!-- <tr>
                   	   <td>
                   		   <label title='' for="competition_gymnasium">竞赛举办场地</label>
                   	   </td>
                   	   <td>
                   		   <input type="text" name="competition_gymnasium" id="competition_gymnasium" />
                   	   </td>
                   </tr> -->
                   <tr>
                        <td>
                              <label title='竞赛图片' for="competition_picture">竞赛图片</label>
                        </td>
                        <td>                
                              <input type="file" name="competition_picture" id="competition_picture"/>
                        </td>
                   </tr>
                  </tbody> 
                </table>
                <input type="submit" />
            </form>
		</div>
	</div>	
</div>

<div class="blank20"></div>
<script type="text/javascript">
   var today = new Date();
   var date = today.getDate();
   var month = today.getMonth() +1;
   var dateString;
   var monthString;
   if(date<10) {
    dateString = "0"+date;
   } else {
     dateString = date;
   }
   if(month<10) {
    monthString = "0"+month;
   } else {
     monthString = month;
   }  
   var time = today.getFullYear()+"-"+monthString+"-"+dateString;
   $('#competition_publish_time').val(time);
   //alert(time);
</script>
<{:W('Bizhome/footer')}>